package com.systemdevelopment.mainproject.View.demo;

import javafx.fxml.FXML;
import javafx.fxml.FXMLLoader;
import javafx.scene.control.Button;
import javafx.scene.control.ScrollPane;
import javafx.scene.layout.AnchorPane;

import java.io.IOException;

public class setController {
    @FXML
    Button changeButton;
    @FXML
    ScrollPane specialPane;
    @FXML
    void changePane()//切换面板样例
    {
        try {
            specialPane.setContent((new FXMLLoader(setPane.class.getResource("pane.fxml"))).load());
        } catch (IOException e) {
            e.printStackTrace();
        }

    }
}
